// main.js
import React from 'react';
import ReactDOM from 'react-dom';

import CommentBox from './comment-box';

var data = [
  {id: 1, author: 'Pete Hunt', text: 'This is one comment'},
  {id: 2, author: 'Jordan Walke', text: 'This is *another* comment'}
];

ReactDOM.render(
  <CommentBox url="http://localhost:3000/api/comments" pollInterval={2000}/>,
  document.getElementById('example')
);